//
//  UIImage+Extension.swift
//  微博练习
//
//  Created by 戚轶鋆 on 16/4/19.
//  Copyright © 2016年 戚轶鋆. All rights reserved.
//

import UIKit

extension UIImage {
    class func qy_singleDotImage(color :UIColor) -> UIImage {
        UIGraphicsBeginImageContextWithOptions(CGSize(width: 1, height: 1), false, UIScreen.mainScreen().scale)
        
        color.setFill()
        UIRectFill(CGRect(x: 0, y: 0, width: 1, height: 1))
        
        let result = UIGraphicsGetImageFromCurrentImageContext()
        UIGraphicsEndImageContext()
        
        return result
    }
    
}
